new Vue({
    el: '#box',
    data() {
        return {
            input: '',
            options: [{
                value: '选项1', label: '研发部'
            }, {
                value: '选项2', label: '销售部'
            }, {
                value: '选项3', label: '行政部'
            }, {
                value: '选项4', label: '财务部'
            }, {
                value: '选项5', label: '总裁办公室'
            }],
            value: '',
            value01: '',
            options01: [{
                value: '选项1', label: '小灰'
            }, {
                value: '选项2', label: '小红'
            }, {
                value: '选项3', label: '小蓝'
            }, {
                value: '选项4', label: '小紫'
            }],
            pickerOptions: {
                disabledDate(time) {
                    return time.getTime() > Date.now();
                },
                shortcuts: [{
                    text: '今天',
                    onClick(picker) {
                        picker.$emit('pick', new Date());
                    }
                }, {
                    text: '昨天',
                    onClick(picker) {
                        const date = new Date();
                        date.setTime(date.getTime() - 3600 * 1000 * 24);
                        picker.$emit('pick', date);
                    }
                }, {
                    text: '一周前',
                    onClick(picker) {
                        const date = new Date();
                        date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
                        picker.$emit('pick', date);
                    }
                }]
            },
            value1: '',
            value2: '',
            textarea: ''
        }
    },
    methods: {
        re(){
            location.reload();
        }
    }
})
